import { app_request as request } from "@/utils/http";
export interface categoryItem {
    id: number;
    name: string;
    category1Id?: number;
    category2Id?: number;
    category3Id?: number;
}
export type categoryList = categoryItem[]
export function reqCategory1List() {
    return request.get<null, categoryList>('/admin/product/getCategory1')
}
export function reqCategory2List(category1Id: number) {
    return request.get<null, categoryList>(`/admin/product/getCategory2/${category1Id}`)
}
export function reqCategory3List(category2Id: number) {
    return request.get<null, categoryList>(`/admin/product/getCategory3/${category2Id}`)
}